package com.example.demo.util.zhou;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class Main {
    public static void main(String[] args) {
        String[] adjustments = {
            "如何调整",
            "如何克服",
            "如何减轻",
            "如何应对",
            "如何改善",
            "如何处理",
            "如何舒缓",
            "怎样调整",
            "怎样克服",
            "怎样减轻",
            "怎样应对",
            "怎样改善",
            "怎样处理",
            "怎样舒缓"
        };

        String[] subjects = {
            "悲伤疏导",
            "恐惧",
            "焦虑排解",
            "愤怒",
            "厌恶舒缓",
            "尴尬内疚惭愧化解",
            "强迫削减",
            "神经衰弱缓解",
            "睡眠改善",
            "神经性贪食厌食改变",
            "经期综合征",
            "更年期综合征",
            "疑心病消除",
            "焦虑",
            "抑郁",
            "失眠",
            "多梦",
            "强迫症",
            "神经衰弱",
            "产后抑郁",
            "更年期",
            "考前压力",
            "犹豫迷茫",
            "人格障碍",
            "情绪低落",
            "急躁不安",
            "苦闷压抑",
            "恐艾",
            "自杀倾向",
            "胡思乱想",
            "环境不适应",
            "情绪波动",
            "精神分裂",
            "做噩梦",
            "鬼压身",
            "产前抑郁",
            "分娩恐惧",
            "疑病症",
            "压力大",
            "洁癖",
            "孤独寂寞",
            "易怒",
            "愧疚自责"
        };

        String[] effectiveness = {
            "有效果的",
            "有效的",
            "合理的",
            "实用的",
            "积极的",
            "适当的",
            "聪明的",
            "灵活的",
            "明智的",
            "实用的",
            "有益的",
            "有用的",
            "可行的",
            "具体的",
            "专业的",
            "精湛的",
            "完善的"
        };

        String[] endings = {
            "方法",
            "途径",
            "措施",
            "建议",
            "方式",
            "策略",
            "秘籍",
            "工具",
            "心态",
            "技巧",
            "方案",
            "流程",
            "规划",
            "思维"
        };

        StringBuilder contentBuilder = new StringBuilder();
        for (String adjustment : adjustments) {
            for (String subject : subjects) {
                for (String effect : effectiveness) {
                    for (String ending : endings) {
                        String content = adjustment + subject + effect + ending + "\n";
                        contentBuilder.append(content);
                    }
                }
            }
        }

        String content = contentBuilder.toString();

        try (BufferedWriter writer = new BufferedWriter(new FileWriter("D:/123.txt"))) {
            writer.write(content);
            System.out.println("内容已成功写入文件！");
        } catch (IOException e) {
            System.out.println("写入文件时出现错误：" + e.getMessage());
        }
    }
}
